import './assets/main.css'
import { createApp } from 'vue'
import App from './App.vue'
//全局注册GlobalComDemo组件
import GlobalComDemo from './components/GlobalComDemo.vue'
//引入路由实例
import router from './router';
//引入vuex实例对象
import store from './store';
//引入ElementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'


const app = createApp(App)
app.component(GlobalComDemo.name, GlobalComDemo)
//挂载路由
app.use(router)
//挂载vuex
app.use(store)
//挂载ElementPlus
app.use(ElementPlus)
app.mount('#app')